list=`find . -name "*.c"`
for i in ${list}
do
line=`cat $i | wc -l`
let sum+=${line}
done
echo ${sum}

